import axios from 'axios';
import useRdatStore from '/src/stores/rdat'
const useRdat = useRdatStore()
// 根据你的条件判断选择哪个域名
let baseURL = '';
if (useRdat.currentModule.module_id === "1") {
  baseURL = 'http://39.174.78.30:12724'
} else {
  baseURL = 'http://localhost:6111';
}

const axiosInstance = axios.create({
  baseURL,
});

export default axiosInstance;